package org.example.curriculum_design_6_16.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 知识产权记录表
 * @TableName intellectual_property
 */
@TableName(value ="intellectual_property")
@Data
public class IntellectualProperty implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 关联student.student_id
     */
    private String studentId;

    /**
     * 
     */
    private Object ipType;

    /**
     * 知识产权名称
     */
    private String name;

    /**
     * 申请号
     */
    private String applicationNumber;

    /**
     * 申请日期
     */
    private Date applicationDate;

    /**
     * 知识产权状态
     */
    private Object ipStatus;

    /**
     * 授权号
     */
    private String authorizationNumber;

    /**
     * 授权日期
     */
    private Date authorizationDate;

    /**
     * 证书编号
     */
    private String certificateNumber;

    /**
     * 是否团队负责人
     */
    private Integer isTeamLeader;

    /**
     * 团队人数
     */
    private Integer teamSize;

    /**
     * 实际得分
     */
    private Double score;

    /**
     * 证明材料URL
     */
    private String proofUrl;

    /**
     * 审核状态
     */
    private Object reviewStatus;

    /**
     * 审核意见
     */
    private String reviewComment;

    /**
     * 所属学年
     */
    private String academicYear;

    /**
     * 
     */
    private Date createdAt;

    /**
     * 
     */
    private Date updatedAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        IntellectualProperty other = (IntellectualProperty) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getStudentId() == null ? other.getStudentId() == null : this.getStudentId().equals(other.getStudentId()))
            && (this.getIpType() == null ? other.getIpType() == null : this.getIpType().equals(other.getIpType()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getApplicationNumber() == null ? other.getApplicationNumber() == null : this.getApplicationNumber().equals(other.getApplicationNumber()))
            && (this.getApplicationDate() == null ? other.getApplicationDate() == null : this.getApplicationDate().equals(other.getApplicationDate()))
            && (this.getIpStatus() == null ? other.getIpStatus() == null : this.getIpStatus().equals(other.getIpStatus()))
            && (this.getAuthorizationNumber() == null ? other.getAuthorizationNumber() == null : this.getAuthorizationNumber().equals(other.getAuthorizationNumber()))
            && (this.getAuthorizationDate() == null ? other.getAuthorizationDate() == null : this.getAuthorizationDate().equals(other.getAuthorizationDate()))
            && (this.getCertificateNumber() == null ? other.getCertificateNumber() == null : this.getCertificateNumber().equals(other.getCertificateNumber()))
            && (this.getIsTeamLeader() == null ? other.getIsTeamLeader() == null : this.getIsTeamLeader().equals(other.getIsTeamLeader()))
            && (this.getTeamSize() == null ? other.getTeamSize() == null : this.getTeamSize().equals(other.getTeamSize()))
            && (this.getScore() == null ? other.getScore() == null : this.getScore().equals(other.getScore()))
            && (this.getProofUrl() == null ? other.getProofUrl() == null : this.getProofUrl().equals(other.getProofUrl()))
            && (this.getReviewStatus() == null ? other.getReviewStatus() == null : this.getReviewStatus().equals(other.getReviewStatus()))
            && (this.getReviewComment() == null ? other.getReviewComment() == null : this.getReviewComment().equals(other.getReviewComment()))
            && (this.getAcademicYear() == null ? other.getAcademicYear() == null : this.getAcademicYear().equals(other.getAcademicYear()))
            && (this.getCreatedAt() == null ? other.getCreatedAt() == null : this.getCreatedAt().equals(other.getCreatedAt()))
            && (this.getUpdatedAt() == null ? other.getUpdatedAt() == null : this.getUpdatedAt().equals(other.getUpdatedAt()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getStudentId() == null) ? 0 : getStudentId().hashCode());
        result = prime * result + ((getIpType() == null) ? 0 : getIpType().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getApplicationNumber() == null) ? 0 : getApplicationNumber().hashCode());
        result = prime * result + ((getApplicationDate() == null) ? 0 : getApplicationDate().hashCode());
        result = prime * result + ((getIpStatus() == null) ? 0 : getIpStatus().hashCode());
        result = prime * result + ((getAuthorizationNumber() == null) ? 0 : getAuthorizationNumber().hashCode());
        result = prime * result + ((getAuthorizationDate() == null) ? 0 : getAuthorizationDate().hashCode());
        result = prime * result + ((getCertificateNumber() == null) ? 0 : getCertificateNumber().hashCode());
        result = prime * result + ((getIsTeamLeader() == null) ? 0 : getIsTeamLeader().hashCode());
        result = prime * result + ((getTeamSize() == null) ? 0 : getTeamSize().hashCode());
        result = prime * result + ((getScore() == null) ? 0 : getScore().hashCode());
        result = prime * result + ((getProofUrl() == null) ? 0 : getProofUrl().hashCode());
        result = prime * result + ((getReviewStatus() == null) ? 0 : getReviewStatus().hashCode());
        result = prime * result + ((getReviewComment() == null) ? 0 : getReviewComment().hashCode());
        result = prime * result + ((getAcademicYear() == null) ? 0 : getAcademicYear().hashCode());
        result = prime * result + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
        result = prime * result + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", studentId=").append(studentId);
        sb.append(", ipType=").append(ipType);
        sb.append(", name=").append(name);
        sb.append(", applicationNumber=").append(applicationNumber);
        sb.append(", applicationDate=").append(applicationDate);
        sb.append(", ipStatus=").append(ipStatus);
        sb.append(", authorizationNumber=").append(authorizationNumber);
        sb.append(", authorizationDate=").append(authorizationDate);
        sb.append(", certificateNumber=").append(certificateNumber);
        sb.append(", isTeamLeader=").append(isTeamLeader);
        sb.append(", teamSize=").append(teamSize);
        sb.append(", score=").append(score);
        sb.append(", proofUrl=").append(proofUrl);
        sb.append(", reviewStatus=").append(reviewStatus);
        sb.append(", reviewComment=").append(reviewComment);
        sb.append(", academicYear=").append(academicYear);
        sb.append(", createdAt=").append(createdAt);
        sb.append(", updatedAt=").append(updatedAt);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}